"""适配器异常定义模块"""

from __future__ import annotations


class AdapterError(Exception):
    """适配器统一异常基类"""
    pass


class ModelLoadError(AdapterError):
    """模型加载失败"""
    pass


class InferenceError(AdapterError):
    """推理执行失败"""
    pass


class ComplianceError(AdapterError):
    """合规校验失败（如模型哈希不匹配、算子不支持等）"""
    pass


class ValidationError(AdapterError):
    """输出验证失败"""
    pass

